package com.chinacoal.hr.levelapi.entity;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotNull;
import java.util.List;
import java.util.Map;

/**
 * @author: YunTao.Li
 * @create: 2019-12-12 17:14
 * @description:
 **/
@Data
public class ApproveParam {
    public static final long serialVersionUID = 1L;

    @ApiModelProperty(value="待办id", example="", required=false)
    public Long taskId;

    @ApiModelProperty(value="审批意见", example="", required=false)
    public String approvalOpinion;

    @ApiModelProperty(value="操作码", example="1000-同意 1001-驳回 1002-撤回 1003-回退 1004-征询 1005-委派 1006-转发 1007-撤销 1008-终止 1009-挂起 1010-恢复 1012-重启", required=true)
    @NotNull(message="操作码不能为空: opcode")
    public String opcode;

    @ApiModelProperty(value="手动选人/节点回退列表", example="", required=false)
    public List<WrapAttribute> options;

    @ApiModelProperty(value="实例id", example="", required=true)
    @NotNull(message="实例id不能为空")
    public Long instanceId;

    @ApiModelProperty(value="参数列表", example="", required=false)
    public Map<String, Object> businessParam;

    @ApiModelProperty(value="是否存在填报节点", example="Y-存在，N-不存在", required=false)
    public String isEditNode;

    @ApiModelProperty(hidden=true)
    public Integer userId;
}
